#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

#include <string.h>

int main()
{
	char a[20] = {};
	scanf("%s", a);
	for (int i = 19; i >= 0; i--) {
		printf("%c", a[i]);
	}
	return 0;
}